<?php


namespace App\Modules\Seller\Http\Requests\Rabc;


use App\Modules\Admin\Http\Requests\BaseRequest;
use App\Modules\Seller\Entities\Rabc\SellerAdmin;

class SellerAdminRequest extends BaseRequest
{

    public function setInstance()
    {
        $this->instance = SellerAdmin::getInstance();
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'account' => [
                'required',
                'max:256',
//                'unique:' . $this->instance->getTable() . ',account' . $this->validate_id
            ],

            'password' => [
//                'confirmed',
            ],

        ];
    }

    public function messages()
    {
        return [
            'account.required' => '请输入账户！',
            'password.confirmed' => '密码确认不匹配！',
        ];
    }
}